Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
This PR adds the modular-account-libs node dependency to the project, and shifts common imports to instead import from the newly added dependency, removing redundant files in the process.
This is part of an effort to consolidate dependencies into a shared source, reducing fragmentation across the modular account ecosystem.
Solution
Removes files and tests for libraries that are now imported from the dependency. These files were diff'd, and are functionally identical to the files already present in
modular-account-libs
, apart from theFunctionReferenceLib
which had slightly more functionality included in themodular-account
version.This functionality was extracted to a new, simple library
FunctionReferenceHelpers
, but I wouldn't be averse to moving them over to another file if needed. (They're only used once, so we could consider inlining them as well)TODO
Group imports by source (optional, makes import blocks more readable, i.e. Put all modular-account-libs imports in a sequence.)
Move the
LLSLRepro.t.sol
file to themodular-account-libs
repo (optional, but it's the only file which imports tests, and is limited in scope to files contained in themodular-account-libs
repo)